<?php

/**
 * Created by PhpStorm.
 * User: 建名
 * Date: 2015/12/17
 * Time: 17:17
 */

namespace app\api\controllers;

use app\models\GkyMsgDocument;
use app\models\GkyMsgReply;
use app\models\GkyMsgUser;
use app\models\GkyUser;
use yii\web\Controller;
use app\api\Response;
use yii\helpers\ArrayHelper;
use app\models\Msg;
use app\models\GkyQyh;
use app\common\utils\QyWechat;
use app\models\GkyWeArticle;

class GzhliebiaoController extends Controller {
//获得文章列表
    public function actionGetArticleList($articletypeid, $pageNow, $pageSize) {
//       echo "a";
        $list = GkyWeArticle::getArticleList($articletypeid, $pageNow, $pageSize);
        Response::setHeader();
        echo json_encode(ArrayHelper::toArray($list));
    }

       public function actionGetArticle($articleid) {

        $list = GkyWeArticle::getArticle($articleid);
        Response::setHeader();
        echo json_encode(ArrayHelper::toArray($list));
    }
}
